<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="my.dao.*" %>
    
    
<%
	
	//注意此处参数名为"ids[]"
	String[] ids=request.getParameterValues("ids[]");
	
	for(int i=0;i<ids.length;i++){
		MyDao.update(
				"delete from dep where d_id=?", 
				ids[i]
		);
	}
	

	
	out.print(MyDao.jsonMessage(true, "删除成功！"));
%>
